<%@ page import="psychoproject.YesNoQuestion" %>



<div class="fieldcontain ${hasErrors(bean: yesNoQuestionInstance, field: 'answerText1', 'error')} required">
	<label for="answerText1">
		<g:message code="yesNoQuestion.answerText1.label" default="Answer Text1" />
		<span class="required-indicator">*</span>
	</label>
	<g:textField name="answerText1" required="" value="${yesNoQuestionInstance?.answerText1}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: yesNoQuestionInstance, field: 'answerText2', 'error')} required">
	<label for="answerText2">
		<g:message code="yesNoQuestion.answerText2.label" default="Answer Text2" />
		<span class="required-indicator">*</span>
	</label>
	<g:textField name="answerText2" required="" value="${yesNoQuestionInstance?.answerText2}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: yesNoQuestionInstance, field: 'correctAnswer', 'error')} ">
	<label for="correctAnswer">
		<g:message code="yesNoQuestion.correctAnswer.label" default="Correct Answer" />
		
	</label>
	<g:textField name="correctAnswer" value="${yesNoQuestionInstance?.correctAnswer}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: yesNoQuestionInstance, field: 'letter', 'error')} ">
	<label for="letter">
		<g:message code="yesNoQuestion.letter.label" default="Letter" />
		
	</label>
	<g:textField name="letter" value="${yesNoQuestionInstance?.letter}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: yesNoQuestionInstance, field: 'questionText', 'error')} ">
	<label for="questionText">
		<g:message code="yesNoQuestion.questionText.label" default="Question Text" />
		
	</label>
	<g:textField name="questionText" value="${yesNoQuestionInstance?.questionText}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: yesNoQuestionInstance, field: 'state', 'error')} ">
	<label for="state">
		<g:message code="yesNoQuestion.state.label" default="State" />
		
	</label>
	<g:checkBox name="state" value="${yesNoQuestionInstance?.state}" />
</div>

<div class="fieldcontain ${hasErrors(bean: yesNoQuestionInstance, field: 'type', 'error')} ">
	<label for="type">
		<g:message code="yesNoQuestion.type.label" default="Type" />
		
	</label>
	<g:textField name="type" value="${yesNoQuestionInstance?.type}"/>
</div>

